package com.qth.valet.common.listener;

import com.qth.valet.entity.po.Orders;
import org.springframework.context.ApplicationEvent;

// 订单创建事件
public class OrderCreatedEvent extends ApplicationEvent {

    private Orders order;

    public OrderCreatedEvent(Object source, Orders order) {
        super(source);
        this.order = order;
    }

    public Orders getOrder() {
        return order;
    }
}

